package com.wy.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * goods_evaluation
 * @author 
 */
@Data
public class GoodsEvaluation implements Serializable {
    /**
     * 评论id
     */
    @TableId
    private Long evaluationId;

    /**
     * 卖方用户id
     */
    private Long sellerUserId;

    /**
     * 买方用户id
     */
    private Long buyerUserId;

    /**
     * 商品信息id
     */
    private Long goodsId;

    /**
     * 评价信息
     */
    private String detail;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String [] images;


    /**
     * 评分
     */
    private Integer rate;

    /**
     * 用户名
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 头像
     */
    @TableField(exist = false)
    private String headImage;


    @TableField(exist = false)
    private String goodsName;

    @TableField(exist = false)
    private String buyerName;

    @TableField(exist = false)
    private String sellerName;
    private static final long serialVersionUID = 1L;
}